﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCEntity.TMS.RedPacket.RedPacketUsing
{
    /// <summary>
    /// 红包领取记录
    /// </summary>
    [Table("RedPacketUsing")]
    public class RedPacketUsingEntity
    {
        /// <summary>
        /// 红包领取记录Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long RedPacketUsingId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 红包类型Id
        /// </summary>
        public long RedPacketTypeId { get; set; }
        /// <summary>
        /// 红包类型
        /// </summary>
        public string RedPacketType { get; set; }
        /// <summary>
        /// 红包Id
        /// </summary>
        public long RedPacketId { get; set; }
        /// <summary>
        /// 红包名称
        /// </summary>
        public string RedPacketName { get; set; }
        /// <summary>
        /// 红包摘要
        /// </summary>
        public string RedPacketSummark { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 红包目标金额
        /// </summary>
        public decimal RedPacketTargetAmount { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal RedPacketAmount { get; set; }
        /// <summary>
        /// 适用地编码
        /// </summary>
        public string ApplicablePlaceCode { get; set; }
        /// <summary>
        /// 获取方式
        /// </summary>
        public string GrundlagenType { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }
    }
}
